//
//  XLSessionManager.m
//  The_DownKitchen
//
//  Created by Apple on 16/7/20.
//  Copyright © 2016年 The_X. All rights reserved.
//

#import "XLSessionManager.h"

@implementation XLSessionManager

+ (instancetype)sharedSessionManager {

    static id instance = nil;
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        
        NSURLSessionConfiguration *configur = [NSURLSessionConfiguration defaultSessionConfiguration];
        configur.timeoutIntervalForRequest = 30;
        
        instance = [[self alloc] initWithSessionConfiguration:configur];
        
    });
    return instance;
}

@end
